package com.bibimaya.auto.mapper.dao.mapper.processor;

import com.bibimaya.auto.mapper.dao.mapper.BaseMethodMapper;
import com.bibimaya.auto.mapper.dao.mapper.UpdateListMapper;
import com.bibimaya.auto.mapper.dao.utils.UpdateSqlUtil;
import org.apache.ibatis.mapping.ResultMap;
import org.apache.ibatis.mapping.SqlCommandType;

import java.util.List;

public class UpdateListMapperProcessor extends MapperProcessor {

    @Override
    protected Class<? extends BaseMethodMapper> getMapperInterface() {
        return UpdateListMapper.class;
    }

    @Override
    protected String sql() {
        return UpdateSqlUtil.updateListSql(getEntityMap());
    }

    @Override
    protected SqlCommandType commandType() {
        return SqlCommandType.UPDATE;
    }

    @Override
    protected Class parameterType() {
        return List.class;
    }

    @Override
    protected ResultMap[] resultMaps() {
        return null;
    }
}
